package com.spic.business.mq.service;

import com.alibaba.fastjson.JSONObject;
import com.spic.business.mq.domain.Driverless;
import com.spic.business.mq.mapper.DriverlessMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 290512
 * @create 2022-05-17 15:20
 */
@Service
public class DriverlessService
{
    @Autowired
    private DriverlessMapper driverlessMapper;
    public void getMessageHandler(String msg){
        JSONObject responseStr = JSONObject.parseObject(msg);
        Driverless driverless = responseStr.toJavaObject(Driverless.class);
        int insert = driverlessMapper.insert(driverless);
    }
}
